import React, { PureComponent } from 'react';

export default class Detail extends PureComponent {
    render() {
        // 动态路由获取id(路径)
        const match = this.props.match;

        return (
            <div>
                <h2>Detail: {match.params.id}</h2>
            </div>
        )
    }
}